var content;
var tableHead = '<tr style="height:0px;"><td style="width:100%;height:0px;line-height:0px;"></td><td style="width:150px;height:0px;line-height:0px;text-align:right;"></td></tr>';
$(document).ready(function(){
    content=$("#content");
    reLoad_PortalData();
});
function reLoad_PortalData(){
    ActHttpRequest("notice!pageList.do",{rows:10},function(data){
        console.log(mini.encode(data));
        if(data.OK=="OK"){
            var htmlTxt=[];
            if(data.rows && data.rows.length>0){
                for(var i=0;i<data.rows.length;i++){
                    htmlTxt.push('<tr>');
                    htmlTxt.push('<td ><a href="###" onClick="open_Detail(\''+data.rows[i].ntId+'\',\''+data.rows[i].title+'\')" >'+data.rows[i].title+'<a></td>');
                    htmlTxt.push('<td style="color:black">' + data.rows[i].createTime + '</td>');
                    htmlTxt.push('</tr>');
                }
            }else{
                htmlTxt.push('<tr><td ><font color="red">没有要显示的数据</font></td></tr>');
            }
            content.html(tableHead+htmlTxt.join(''));
        }else{
            mini.alert(data.msg);
        }
    });
}
function open_Detail(fid,title){
    window.top.windowtab.addTab(title,"notice/noticeView.html?pid="+fid);
}
